package com.iceframework.core.autoconfigure;

import java.util.Properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = ICEProperties.ICE_PREFIX)
public class ICEProperties {

	public static final String ICE_PREFIX = "web";
	
	private Properties properties = new Properties();

	public Properties getProperties() {
		return properties;
	}
	
	public String getGateApp() {
        return properties.getProperty("gate-app");
    }

    public void setGateApp(String gateApp) {
        properties.setProperty("gate-app", gateApp);
    }
    
    public String getDomainPath() {
    	return properties.getProperty("domain-path");
    }
    
    public void setDomainPath(String domainPath) {
    	properties.setProperty("domain-path", domainPath);
    }
    
    public String getUploadPath() {
    	return properties.getProperty("upload-path");
    }
    
    public void setUploadPath(String uploadPath) {
    	properties.setProperty("upload-path", uploadPath);
    }
    
    public void setCheckRedis(String checkRedis) {
    	properties.setProperty("checkRedis", checkRedis);
    }
    
    public String getCheckRedis() {
    	return properties.getProperty("checkRedis");
    }
}
